/****************************************************
 * @class RoleSettingPanel
 * @extends Ext.grid.GridPanel
 ***************************************************/
	RoleSettingPanel = Ext.extend(Ext.grid.GridPanel,{
		store: null,
		cm: null,
		addRoleWin: null,
		editRoleWin: null,
		defaultUserSettingWin: null,
 		constructor: function(config){
 			Ext.apply(this, config);
 			
 			this.store = new Ext.data.Store({
				proxy: new Ext.data.HttpProxy({
					method: 'POST',  
					url: '/pdm/role/getAllRoleList.htm'
				}),
				reader: new Ext.data.JsonReader({
					totalProperty: 'totalProperty',
					root: 'root',
					id: 'role_id'
				},[
					{name: 'role_id'},
					{name: 'roleName'},
					{name: 'userName'},
					{name: 'userDept'},
					{name: 'memo'}
				])
			});
									
			this.cm = new Ext.grid.ColumnModel([
				new Ext.grid.RowNumberer(),
				{
					id: 'roleName', 
					header: "职务名称",
					dataIndex: 'roleName',
					sortable: true,
					anchor: '27%',
					renderer: function(v,m){
						m.css = 'x-grid-back-light-color';
						return renderGridStr(v);
					}
				},{
					header: "默认人员",
					dataIndex: 'userName',
					align: 'left',
					sortable: true,
					anchor: '23%'
				},{
					header: "部门",
					dataIndex: 'userDept',
					hidden: false,
					sortable:true,
					anchor:'15%'
				},{
					header: "备注",
					dataIndex: 'memo',
					hidden: false,
					sortable: true,
					anchor: '40%',
					renderer: renderGridStr
				}
			]);
			
			RoleSettingPanel.superclass.constructor.call(this, {
				loadMask: {msg: "数据载入中..."},
				region: 'center',
				border: false,
				cls: 'x-rb',
				ds: this.store,
				sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
				cm: this.cm,
				trackMouseOver: false,
				columnLines: true,
				stripeRows: true,
				height: 300,
				width: 900,
				viewConfig: {
					forceFit: true,
					enableRowBody: true,
					showPreview: true
				},
				tbar:[{
					text: "新建",
					iconCls: 'cls_add_role',
					scope: this,
					handler: function(){
						if(!this.addRoleWin)
						{
							this.addRoleWin = new AddRoleWindow({id: "win_AddRole"});
						}
						this.addRoleWin.setTitle("新增职务");
						this.addRoleWin.reset();
						this.addRoleWin.show();
					}
				},'-',{
					text: "编辑",
					iconCls: 'cls_edit_role',
					scope: this,
					handler: function(){
						var record = this.getSelectionModel().getSelected();
						if(!record){
							Ext.Msg.alert("提示","请选择需要编辑的职务！");
						}else{
							if(!this.editRoleWin){
								this.editRoleWin = new EditRoleWindow({id: "win_EditRole"});
							}
							this.editRoleWin.reset();
														
							this.editRoleWin.setTitle("修改职务["+renderString(record.get("roleName"))+"]");
							this.editRoleWin.setValues(record.get("role_id"),record.get("roleName"),record.get("memo"));
							this.editRoleWin.show();
						}
					}
				},'-',{
					text: "删除",
					iconCls: 'cls_remove_role',
					scope: this,
					handler: function(){
						var record = this.getSelectionModel().getSelected();
						if(!record){
							Ext.Msg.alert("提示：","请选中需要删除的职务！");
						}else{
							Ext.MessageBox.show({
								title: "温馨提示：",
								msg: "您确认要删除职务["+record.get("roleName")+"]吗？",
								buttons: Ext.MessageBox.YESNO,
								fn: function(btn){
									if(btn == "yes")
									{
										Ext.Ajax.request({
											url: '/pdm/role/removeRole.htm',
											method: 'post',
											params: {
												roleId: record.get("role_id")
											},
											success: function(response,options){
												var roleSettingGrid = Ext.getCmp("roleSettingGrid");
												if(Ext.isEmpty(roleSettingGrid)){
													Ext.Msg.alert("提示：","系统存在问题！");
												}else{
													roleSettingGrid.load();
												}
												
												var result = Ext.decode(response.responseText).message;
												Ext.Msg.alert("信息:", result);
											},
											failure: function(response){
												var result = Ext.decode(response.responseText).message;
												Ext.Msg.alert("信息:", result);
											}
										});
									}
									else return;
								}
							});
						}
					}
				},'-',{
					text: "人员设置",
					iconCls: 'cls_assign_owner',
					tooltip: "设置职务的默认人员",
					scope: this,
					handler: function(){
						var record = this.getSelectionModel().getSelected();
						if(!record){
							Ext.Msg.alert("提示：","请先选择职务！");
						}else{
							if(!this.defaultUserSettingWin){
								this.defaultUserSettingWin = new DefaultUserSettingWindow({id: "win_DefaultUserSetting"});
							}
							this.defaultUserSettingWin.setTitle("对职务["+record.get("roleName")+"]设置负责人员");
							
							var members = getDefaultUserList(record.get("role_id"));
							
							Ext.fly("_defaultUsers").dom.value = members;
							
							this.defaultUserSettingWin.reset();
							this.defaultUserSettingWin.reDoLayout();
							
							this.defaultUserSettingWin.defaultUserSettingPanel.defaultUserSelect.setReCosigners(members);
							this.defaultUserSettingWin.defaultUserSettingPanel.defaultUserSelect.load();
							
							this.defaultUserSettingWin.show();
							
						}
					}
				},'->',{
					text: "刷新",
					scope: this,
					iconCls: 'cls_table_refresh',
					tooltip: "刷新此表格数据",
					handler: function(){
						this.store.load();
					}
				}],
				bbar: new Ext.PagingToolbar({
					pageSize: 50,
					store: this.store,
					displayInfo: true,
					displayMsg: "显示第 {0}~{1} 条，共 {2} 条记录",
					emptyMsg: "没有记录",
					refreshText: "刷新",
					beforePageText: "第",
					afterPageText: "页，共 {0} 页",
					firstText: "第一页",
					prevText: "前一页",
					nextText: "后一页",
					lastText: "最后一页"
				})
			});
			
			this.getSelectionModel().on('rowselect', function(sm, rowIdx, r){
				document.getElementById("_selected_role_id").value = r.get("role_id");
			})
		},
		load: function(){
			this.store.load();
		}
	});

/****************************************************
 * @class AddRoleWindow
 * @extends Ext.Window
 ***************************************************/
	AddRoleWindow = Ext.extend(Ext.Window,{
		addRolePanel: null,
		constructor: function(config){
			Ext.apply(this,config);
			
			this.addRolePanel = new AddRolePanel({id:"pnl_AddRole"});
			
			AddRoleWindow.superclass.constructor.call(this, {
				layout: 'fit',
				width: 380,
				height: 180,
				modal: true,
				closeAction: 'hide',
				plain: true,
				buttonAlign: 'center',
				resizable: false,
				items: this.addRolePanel,
				buttons: [{
					text: "保存",
					scope: this,
					handler: function(){
						if (this.addRolePanel.getForm().isValid()) {
							this.addRolePanel.form.submit({
								url: '/pdm/role/saveRole.htm',
								success: function(form, action)
								{
									var msg = action.response.responseText;
									var obj = Ext.decode( msg );
									Ext.Msg.alert("温馨提示：", obj.message);
									
									var win_AddRole = Ext.getCmp("win_AddRole");
									win_AddRole.hide();
									
									var roleSettingGrid = Ext.getCmp("roleSettingGrid");
									roleSettingGrid.load();
									
								},
								failure: function(form, action) 
								{
									var msg = action.response.responseText;
									var obj = Ext.decode( msg );
									Ext.Msg.alert('温馨提示：', obj.message);
								},
								waitMsg : "正在保存数据，稍后..."
							});
						}else{
							Ext.Msg.alert('信息', '请确认红色区域里内容是否完整或正确!');
						}
					}
				},{
					text: "取消",
					scope: this,
					handler: function(){
						this.hide();
					}
				}]
			});
		},
		reset: function()
		{
			this.addRolePanel.form.reset();
		}
	});
/****************************************************
 * @class AddRolePanel
 * @extends Ext.FormPanel
 ***************************************************/
	AddRolePanel = Ext.extend( Ext.FormPanel,{
		constructor: function(config){
			Ext.apply(this,config);
			
			AddRolePanel.superclass.constructor.call(this, {
				region: 'center',
				layout: 'form',
				border: false,
				frame: true,
				labelAlign: 'right',
				bodyStyle: 'padding:5px',
				buttonAlign: 'center',
				items: [{
		            xtype: 'textfield',
		            fieldLabel: "职位名称",
		            maxLength: 100,
		            name: 'role_name',
		            allowBlank: false,
		            anchor: '95%'
				},{
		            xtype: 'textarea',
		            fieldLabel: "备注",
		            maxLength: 200,
		            name: 'role_memo',
		            allowBlank: true,
		            anchor: '95%'
				}]
			});
		}
	});	

/****************************************************
 * @class EditRoleWindow
 * @extends Ext.Window
 ***************************************************/
	EditRoleWindow = Ext.extend(Ext.Window,{
		editRolePanel: null,
		constructor: function(config){
			Ext.apply(this,config);
			
			this.editRolePanel = new EditRolePanel({id:"pnl_EditRole"});
			
			EditRoleWindow.superclass.constructor.call(this, {
				layout: 'fit',
				width: 380,
				height: 180,
				modal: true,
				closeAction: 'hide',
				plain: true,
				buttonAlign: 'center',
				resizable: false,
				items: this.editRolePanel,
				buttons: [{
					text: "保存",
					scope: this,
					handler: function(){
						if (this.editRolePanel.getForm().isValid()) {
							this.editRolePanel.form.submit({
								url: '/pdm/role/editRole.htm',
								success: function(form, action)
								{
									var msg = action.response.responseText;
									var obj = Ext.decode( msg );
									Ext.Msg.alert("温馨提示：", renderString(obj.message));
									
									var win_AddRole = Ext.getCmp("win_EditRole");
									win_AddRole.hide();
									
									var roleSettingGrid = Ext.getCmp("roleSettingGrid");
									roleSettingGrid.load();
									
								},
								failure: function(form, action) 
								{
									var msg = action.response.responseText;
									var obj = Ext.decode( msg );
									Ext.Msg.alert('温馨提示：', obj.message);
								},
								waitMsg : "正在保存数据，稍后..."
							});
						}else{
							Ext.Msg.alert('信息', '请确认红色区域里内容是否完整或正确!');
						}
					}
				},{
					text: "取消",
					scope: this,
					handler: function(){
						this.hide();
					}
				}]
			});
		},
		reset: function()
		{
			this.editRolePanel.form.reset();
		},
		setValues: function(roleId,roleName,memo)
		{
			this.editRolePanel.form.setValues({
				"role_id"   : roleId,
				"role_name" : renderString(roleName),
				"role_memo" : renderString(memo)
			});
		}
	});
	
/****************************************************
 * @class EditRolePanel
 * @extends Ext.FormPanel
 ***************************************************/
	EditRolePanel = Ext.extend( Ext.FormPanel,{
		constructor: function(config){
			Ext.apply(this,config);
			
			EditRolePanel.superclass.constructor.call(this, {
				region: 'center',
				layout: 'form',
				border: false,
				frame: true,
				labelAlign: 'right',
				bodyStyle: 'padding:5px',
				buttonAlign: 'center',
				items: [{
		            xtype: 'textfield',
		            fieldLabel: "职位名称",
		            maxLength: 100,
		            name: 'role_name',
		            allowBlank: false,
		            anchor: '95%'
				},{
		            xtype: 'textarea',
		            fieldLabel: "备注",
		            maxLength: 200,
		            name: 'role_memo',
		            allowBlank: true,
		            anchor: '95%'
				},{
		            xtype: 'textfield',
		            name: 'role_id',
		            hidden: true,
		            anchor: '95%'
				}]
			});
		}
	});

/****************************************************
 * @class DefaultUserSettingWindow
 * @extends Ext.Window
 ***************************************************/
DefaultUserSettingWindow = Ext.extend(Ext.Window,{
	defaultUserSettingPanel: null,
	constructor: function(config){
		Ext.apply(this,config);
		
		this.defaultUserSettingPanel = new DefaultUserSettingPanel({id: "pnl_DefaultUserSetting"});
		
		DefaultUserSettingWindow.superclass.constructor.call(this, {
			layout: 'form',
			width: 640,
			height: 480,
			modal: true,
			plain: true,
			closeAction: 'hide',
			buttonAlign: 'center',
			resizable: false,
			layout: 'fit',
			items: [this.defaultUserSettingPanel],
			buttons: [{
			    text: "确定",
			    scope: this,
			    handler: function(){
			    	var reCosigners = Ext.fly("_defaultUsers").dom.value;
			    	var roleSettingGrid = Ext.getCmp("roleSettingGrid");
			    	if(Ext.isEmpty(roleSettingGrid)) Ext.Msg.alert("提示","系统存在问题！");
			    	else
			    	{
			    		var record = roleSettingGrid.getSelectionModel().getSelected();
			    		Ext.Ajax.request({
							url: '/pdm/role/setRoleDefaultUser.htm',
							method: 'post',
							params: {
								userList: reCosigners,
								roleId: record.get("role_id")
							},
							success: function(response,options)
							{
								var win_DefaultUserSetting = Ext.getCmp("win_DefaultUserSetting");
								win_DefaultUserSetting.hide();
								/*
								var result = Ext.decode(response.responseText).message;
								Ext.Msg.alert("信息:", result);
								*/
								roleSettingGrid.load();
							},
							failure: function(response){					
								var result = Ext.decode(response.responseText).message;
								Ext.Msg.alert("信息:", result);
							}
						});
			    	}
			    }
			},{
			    text: "关闭",
			    scope: this,
			    handler: function(){
			    	this.hide();
			    }
			}]
		});
	},
	reset: function(){
		this.defaultUserSettingPanel.reset();
	},
	reDoLayout: function(){
		var tbpnl_usrs = Ext.getCmp("tbpnl_defaultUsers");
		tbpnl_usrs.setActiveTab(0);
		this.defaultUserSettingPanel.tree.root.reload(true,true);
	}
});
	
/****************************************************
 * @class DefaultUserSettingPanel
 * @extends Ext.FormPanel
 ***************************************************/
DefaultUserSettingPanel = Ext.extend(Ext.FormPanel,{
	tree: null,
	fuzzySearch: null,
	defaultUserSelect: null,
	constructor: function(config){
		Ext.apply(this,config);
		
		this.tree = new DefaultUserOrgTree({id: "tp_DefaultUserOrgTree"});
		this.defaultUserSelect = new DefaultUserSelect({id: "gp_DefaultUserSelect"});
		this.fuzzySearch = new DefaultUserFuzzySearchPanel({id: "gp_DefaultUserFuzzySearch"});
		this.fuzzySearch.load();
		
		DefaultUserSettingPanel.superclass.constructor.call(this, {
			region: 'center',
			border: false,
			width: 500,
			height: 400,
			layout: 'column',
			viewConfig: {forceFit: true},
			buttonAlign: 'center',
			items: [{
				columnWidth: 0.59,
				layout: 'fit',
				border: false,
				height: 410,
				items:[{
					id: 'tbpnl_defaultUsers',
		            xtype: 'tabpanel',
		            enableTabScroll: true,
					activeTab: 0,
					items:[{
						title: "Org",
						id: 'tab_defaultUser_OrgTree',
						iconCls: 'cls_org_search_tab',
						border: false,
						layout: 'fit',
						height: 400,
						items: [this.tree]
					},{
						title: "Search",
						id: 'tab_defautUser_SearchPanel',
						iconCls: 'cls_user_search_tab',
						layout: 'fit',
						border: false,
						height: 400,
						items: [this.fuzzySearch]
					}]
		        }]
			},{
				columnWidth: 0.01,
				border: false,
				height: 410,
				layout: 'fit'
			},{
				columnWidth: 0.40,
				height: 410,
				layout: 'fit',
				items:[this.defaultUserSelect]
			}]
		});
	},
	reset: function(){
		this.defaultUserSelect.reload();
	}
});

/****************************************************
 * @class DefaultUserOrgTree
 * @extends Ext.tree.TreePanel
 ***************************************************/
DefaultUserOrgTree = Ext.extend(Ext.tree.TreePanel,{
	_collectReCosign: null,
	constructor: function(config){
		Ext.apply(this,config);
		
		DefaultUserOrgTree.superclass.constructor.call(this, {
			autoScroll: true,
			border: false,
			width: 200,
			height: 300,
			rootVisible: false,
			singleExpand: true,
			containerScroll: true,
			loader: new Ext.tree.TreeLoader({dataUrl: '/pdm/hr/org.htm'}),
			root: new Ext.tree.AsyncTreeNode({	
			   id: '10000000',
			   text: "IVO 龙腾光电",
			   draggable: false
			})
		});
		
		this.on('dblclick', function(node){
			if(node.leaf==true){
				var collectReCosign = Ext.fly("_defaultUsers").dom.value;
				var gp_RoleUserSelect = Ext.getCmp("gp_DefaultUserSelect");
				
				var userStore = gp_RoleUserSelect.getStore();
				var num = userStore.getCount();
				var repeat = false; //判断人员是否重复选择
				
				if(num == 0){
					if(collectReCosign == "" ) collectReCosign = node.id;
					else collectReCosign = collectReCosign + "," + node.id;
					Ext.fly("_defaultUsers").dom.value = collectReCosign;
			
					gp_RoleUserSelect.setReCosigners(collectReCosign);
					gp_RoleUserSelect.load();
				}else{
					for(var i=0;i<userStore.getCount();i++)
					{
						var record = userStore.getAt(i);
						if( record.get("employee_ID") == node.id)
						{
							repeat = true;
						}
						if(repeat) break;
					}
					
					if(repeat){
						Ext.Msg.alert("提示：","["+node.text+"] 已选择！");
					}else{
						if(collectReCosign == "" ) collectReCosign = node.id;
						else collectReCosign = collectReCosign + "," + node.id;
						Ext.fly("_defaultUsers").dom.value = collectReCosign;
				
						gp_RoleUserSelect.setReCosigners(collectReCosign);
						gp_RoleUserSelect.load();
					}
				}
			}
			else Ext.Msg.alert("温馨提示：", "请您选择人员！");
		});
	}
});

/****************************************************
 * @class DefaultUserSelect
 * @extends Ext.grid.GridPanel
 ***************************************************/
DefaultUserSelect = Ext.extend(Ext.grid.GridPanel,{
	collectReCosign: null,
	condition: null,
	cm: null,
	store: null,
	constructor: function(config){
		Ext.apply(this,config);
		
		this.cm = new Ext.grid.ColumnModel([
			new Ext.grid.RowNumberer(),
			{header:"员工工号", dataIndex: 'employee_ID', width:100, sortable:true},
			{header:"员工名称", dataIndex: 'employeeName', width:150}
		]);
		
		this.condition = {};
		
		this.store = new Ext.data.Store({
		    baseParams: this.condition, 
		    proxy: new Ext.data.HttpProxy({
		    	method: 'POST',  
				url: '/pdm/hr/getReCosignerList.htm'
			}),
		    reader: new Ext.data.JsonReader({
				totalProperty: 'totalProperty',
				root: 'root',
				id: 'employee_ID'
			},[
				{name: 'employee_ID'},
		        {name: 'employeeName'}
			])
		});
				
		DefaultUserSelect.superclass.constructor.call(this, {
			region: 'center',
			border: false,
			loadMask: {msg: "Loading..."},
			width: 300,
			height: 500,
			cls: 'x-rb',
			viewConfig: {forceFit: true},
			ds: this.store,
			sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
			cm: this.cm,
			tbar: ['<font color=brown>(双击删除)</font>','->',{
				text: "清空",
				iconCls: 'cls_clean_all',
				scope: this,
				handler: function(){
					Ext.fly("_defaultUsers").dom.value = "";
					this.reload();
				}
			}]
		});
		
		this.on('dblclick', function(grid, rowIndex, e){
			var row = this.getSelectionModel().getSelected();
			var collectReCosign = Ext.fly("_defaultUsers").dom.value;
			
			var collectReCosigns = collectReCosign.split(",");
			var j = collectReCosigns.length;
			for(var i=0;i < j;i++)
			{
				if(collectReCosigns[i] == row.get("employee_ID"))
				{
					for(var t=i;t<j;t++)
					{
						collectReCosigns[t]=collectReCosigns[t+1];
					}
					j=j-1;
				}
			}
			if(j==0) collectReCosign = "";
			else
			{
				for(var m=0;m<j;m++)
				{
					if(m==0) collectReCosign=collectReCosigns[m];
					else collectReCosign = collectReCosign+","+collectReCosigns[m];
				}
			}
			Ext.fly("_defaultUsers").dom.value = collectReCosign;
			this.condition.reCosignerList = collectReCosign;
			this.store.load();
		}); 
	},
	load: function() {
		this.store.load();
	},
	setReCosigners: function(c) {
		this.condition.reCosignerList = c;
	},
	reload: function(){
		this.condition.reCosignerList = "";
		this.store.load();
	}
});

/****************************************************
 * @class DefaultUserFuzzySearchPanel
 * @extends Ext.grid.GridPanel
 ***************************************************/
DefaultUserFuzzySearchPanel = Ext.extend(Ext.grid.GridPanel,{
	condition: null,
	cm: null,
	store: null,
	searchField: null,
	pagingToolbar: null,
	constructor: function(config){
		Ext.apply(this,config);
		
		this.cm = new Ext.grid.ColumnModel([
			new Ext.grid.RowNumberer(),
			{header:"姓名", dataIndex:'employeeName', width:120},
			{header:"英文名", dataIndex:'employeeName_EN', width:150},
			{header:"部门", dataIndex:'deptName', width:150}
		]);
		
		this.condition = {};
		this.condition.limit = 50;
		
		this.store = new Ext.data.Store({
		    baseParams: this.condition, 
		    proxy: new Ext.data.HttpProxy({
		    	method: 'POST',  
				url: '/pdm/hr/getEmployeeList.htm'
			}),
		    reader: new Ext.data.JsonReader({
				totalProperty: 'totalProperty',
				root: 'root',
				id: 'employee_ID'
			},[
				{name: 'employee_ID'},
		        {name: 'employeeName'},
		        {name: 'employeeName_EN'},
		        {name: 'deptName'}
			])
		});
		//this.store.load();
		this.searchField = new Ext.ux.form.SearchField({store: this.store,width:200});
		
		this.pagingToolbar = new Ext.PagingToolbar({
			pageSize: 50,
			store: this.store,
			displayInfo: true,
			displayMsg: "第{0}~{1}条,共{2}",
			emptyMsg: "没有记录",
			refreshText: "刷新",
			beforePageText: "第",
			afterPageText: "页,共{0}页",
			firstText: "第一页",
			prevText: "上一页",
			nextText: "下一页",
			lastText: "最后一页"
		});
		
		DefaultUserFuzzySearchPanel.superclass.constructor.call(this, {
			region: 'center',
			border: false,
			loadMask: {msg: "人员载入中..."},
			width: 300,
			height: 500,
			cls: 'x-rb',
			viewConfig: {forceFit: true},
			ds: this.store,
			sm: new Ext.grid.RowSelectionModel({singleSelect:true}),
			cm: this.cm,
			tbar: [this.searchField],
			bbar: this.pagingToolbar
		});
		
		this.on('dblclick', function(rowIdx, r){
			var collectReCosign = Ext.fly("_defaultUsers").dom.value;
			
			var gp_RoleUserSelect = Ext.getCmp("gp_DefaultUserSelect");
			var userStore = gp_RoleUserSelect.getStore();
			var num = userStore.getCount();
			var repeat = false; //判断人员是否重复选择
			
			var row = this.getSelectionModel().getSelected();
			
			if(num == 0){
				if(collectReCosign == "" ) collectReCosign = row.get("employee_ID");
				else collectReCosign = collectReCosign + "," + row.get("employee_ID");
				Ext.fly("_defaultUsers").dom.value = collectReCosign;
			
				gp_RoleUserSelect.setReCosigners(collectReCosign);
				gp_RoleUserSelect.load();
			}else{
				for(var i=0;i<userStore.getCount();i++)
				{
					var record = userStore.getAt(i);
					if( record.get("employee_ID") == row.get("employee_ID"))
					{
						repeat = true;
					}
					if(repeat) break;
				}
				if(repeat){
					Ext.Msg.alert("提示：","["+row.get("employeeName")+"] 已选择！");
				}else{
					if( collectReCosign == "" ) collectReCosign = row.get("employee_ID");
					else collectReCosign = collectReCosign + "," + row.get("employee_ID");
					
					Ext.fly("_defaultUsers").dom.value = collectReCosign;
					
					gp_RoleUserSelect.setReCosigners(collectReCosign);
					gp_RoleUserSelect.load();
				}
			}
		});
	},
	load: function(){
		this.store.load();
	}
});


